This is just
another gradient ActiveX control, with a few features that I have
never found in other gradient controls, like the ability of
acting as a title bar and moving the form in which it is placed,
supporting transparent controls without problems or being able to
make the gradient between any two colors.
Properties:
- Align. With
this property you can align the control to the top,
bottom, left or right part of the form in which it is
placed.
- Border.
None or FixedSingle.
- Color.
Starting color for the gradient.
- FinColor.
Ending color for the gradient (Spanish).
- MoveForm.
When set to true, the control will act as a title bar, so
you can move the form in which the control is placed.
- Orientation.
You have four options: TopBottom, LeftRight, BottomTop
and RightLeft.
- ToolTipText:
text that will be showed when the pointer stays over the
gradient.
Methods:
- Refresh.
Use this method to refresh the gradient, although you
shouldn't need it.
Also you can
place other controls over this one (this control can act as a
frame control). This is very useful when you want to put labels
(including transparent ones) over it.
History:
- Version
1.01 08.03.98: Fixed a problem that made the control not
repaint itself properly after reading its properties.
- Version
1.02 25.04.98: Fixed a bug that made the control not
refresh itself properly after changing properties. Also
added the 'Refresh' method.
© Alvaro Redondo, 1998. All Rights Reserved.
http://www.sevillaonline.com/ActiveX